import requets from "@/utils/http"


export const loginAPI = ({username, password}) => {
    return requets({
        url: "/auth/user/login",
        method: "POST",
        data: {
            username, password
        }
    })

}


export const getLikeListAPI = ({limit = 4}) => {
    return requets({
        url: '/goods/relevant',
        params: {
            limit
        }
    })
}

// "payNo,totalPrice,orderType,orderName,orderDescrip,orderDetail,outBusinessId"
export const generatepaycodeAPI = (payNo,totalPrice,orderType,orderName,orderDescrip,orderDetail,outBusinessId) => {
    return requets({
        url: "orders/generatepaycode",
        method: "POST",
        data: {
            payNo:payNo,
            totalPrice:totalPrice,
            orderType:orderType,
            orderName:orderName,
            orderDescrip:orderDescrip,
            orderDetail:orderDetail,
            outBusinessId:outBusinessId
        }
    })
}